from pyeasyaccept.commands.InternalCommands import InternalCommands 

class Controller:
    """
    @author Danilo Torres
    """
        
    def __init__(self):
        """
        Initializes the Controller.
        """
        self.internalCmds = InternalCommands()
        
    def getPyEasyAcceptCmdsStr(self):  
        """
        Returns the Python EasyAccept command names.
        """
        return self.internalCmds.getCommandsStr()
    
    def getPyEasyAcceptCommand(self, cmd):
        """
        Returns an instance of a Python EasyAccept command.
        @param cmd: the command name 
        """
        return self.internalCmds.getInternalCommandInstance(cmd)
    
